listview: Make the listitemmanager stricter
authorBenjamin Otte <otte@redhat.com>
Fri, 21 Sep 2018 03:32:00 +0000 (05:32 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:45 +0000 (19:26 -0400)
commit54042029d3e0cd2fbd880cdfbe923c1866db769e
tree181582a24981b4e2afcd80372305e8a2b1a1982a
parente1fa6271581b151e2900152499ecfae3feb2eae1
listview: Make the listitemmanager stricter

Require that items created with the manager get destroyed via the
manager.

To that purpose, renamed create_list_item() to acquire_list_item() and
add a matching release_list_item() function.

This way, the manager can in the future keep track of all items and
cache information about them.
gtk/gtklistitemmanager.c
gtk/gtklistitemmanagerprivate.h
gtk/gtklistview.c